<?php
    $query="SELECT * FROM Podwykonawca";

    $wynik=mysql_query($query) or die('zapytanie niudane: '.mysql_error());

    echo "<form action=\"skrypty/podwykonawcy/akcje/modUsPodwyk.php?login=$login\" method=\"post\">";
		echo "<table><tr>
				<td>Usuń</td>
                <td>Modyfikuj</td>
				<td>Firma</td>
                <td>Adres</td>
                <td>eMail</td>
			</tr>";


        while($line = mysql_fetch_array($wynik, MYSQL_NUM)){
            $adres = "skrypty/archiwum/form/podglPrzepis.php?id={$line[0]}";
			echo "<tr>";
                echo "<td><input type=checkbox name=\"{$line[0]}\"></td>\n";
                echo "<td><Input type=radio name=\"mod\" value=\"{$line[0]}\"></td>\n";
                echo "<td>{$line[1]}</td>\n";
                echo "<td>{$line[2]}</td>\n";
                echo "<td>{$line[3]}</td>\n";
            echo "</tr>\n";
		}
		echo "</table>";
        echo "<input type=submit name=\"usun\" id=\"usun\" value=\"usuń\"> | ";
        echo "<input type=submit name=\"modyfikuj\" id=\"modyfikuj\" value=\"modyfikuj\">";
        echo "</form>";

?>